package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface ITravelCommendService {


    void save(TravelCommend travelCommend);

    /**
     * 高级查询
     *
     * @param qo
     * @return
     */
    PageInfo query(TravelCommendQueryObject qo);

    void update(TravelCommend travelCommend);

    void delete(Long id);

    TravelCommend get(Long id);

    List<TravelCommend> selectAll();


    void saveOrUpdate(TravelCommend travelCommend);

    PageInfo getCommendsByState(TravelCommendQueryObject qo);
}
